package com.gullmall.product.feign;

import com.gullmall.common.to.SkuHasStockTo;
import com.gullmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "ware")
public interface WareClient {

    @PostMapping("/ware/waresku/hasstock")
    List<SkuHasStockTo>  getSkuHasStock(@RequestBody List<Long> skuIds );
}
